beginner - best way to do a 'Confirm' page? [closed]

Posted by W_P on Pro Webmasters See other posts from Pro Webmasters or by W_P
Published on 2011-02-25T16:43:26Z Indexed on 2011/02/25 23:34 UTC
Read the original article Hit count: 328

Filed under:
|

I am a beginning web app developer, wondering about the best way to implement a "Confirm Page" upon form submission. I have heard that it's best for the script that a form POSTs to to be implemented by handling the POST data and then redirecting to another page, so the user isn't directly viewing the page that was POSTed to.

My question is about the best way to implement a "Confirm before data save" page. Do I

  1. Have my form POST to a script, which marshals the data, puts in a GET, and redirects to the confirm page, which unmarshals and displays the data in another form, where the user can then either confirm (which causes another POST to a script that actually saves the data) or deny (which causes the user to be redirected back to the original form, with their input added)?

  2. Have my form POST directly to the confirm page, which is displayed to the user and then, like #1, gives the user the option to confirm or deny?

  3. Have my form GET the confirm page, which then does the expected behavior?

I feel like there is a common-sense answer to this question that I am just not getting.

© Pro Webmasters or respective owner

Related posts about forms

Related posts about best-practices